<?php
	defined( '_JEXEC' ) or die('che con me no roi');

	jimport( 'joomla.application.component.controller' );
	class TestController extends JController
	{
	
		function display()
		{
			$document =& JFactory :: getDocument();
			$viewName = JRequest :: getVar( 'task', 'all' );
			$viewType = $document->getType();
			$view = & $this->getView( $viewName, $viewType );
			$model = & $this->getModel( $viewName, 'ModelHello' );
			
			if(!JError :: isError( $model ))
			{
				$view = setModel( $model, true );
			}
			$view -> setDefault( 'default' );
			$view -> display();
		}
	}
?>